package com.ruoyi.project.system.item.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

public class SysUnit extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /** ID */
    private String id;

    /** 父级ID */
    @Excel(name = "父级ID")
    private String parentId;

    /** 树路径 */
    @Excel(name = "树路径")
    private String path;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String name;

    /** 单位别名 */
    @Excel(name = "单位别名")
    private String aliasName;

    /** 机构编码 */
    @Excel(name = "机构编码")
    private String unitcode;

    /** 单位介绍 */
    @Excel(name = "单位介绍")
    private String note;

    /** 单位地址 */
    @Excel(name = "单位地址")
    private String address;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String telephone;

    /** 单位邮箱 */
    @Excel(name = "单位邮箱")
    private String email;

    /** 单位网站 */
    @Excel(name = "单位网站")
    private String website;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long location;

    /** 有子节点 */
    @Excel(name = "有子节点")
    private Integer hasChildren;

    /** 操作人 */
    @Excel(name = "操作人")
    private String opBy;

    /** 操作时间 */
    @Excel(name = "操作时间")
    private Long opAt;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Integer delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setPath(String path)
    {
        this.path = path;
    }

    public String getPath()
    {
        return path;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAliasName(String aliasName)
    {
        this.aliasName = aliasName;
    }

    public String getAliasName()
    {
        return aliasName;
    }
    public void setUnitcode(String unitcode)
    {
        this.unitcode = unitcode;
    }

    public String getUnitcode()
    {
        return unitcode;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setTelephone(String telephone)
    {
        this.telephone = telephone;
    }

    public String getTelephone()
    {
        return telephone;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setWebsite(String website)
    {
        this.website = website;
    }

    public String getWebsite()
    {
        return website;
    }
    public void setLocation(Long location)
    {
        this.location = location;
    }

    public Long getLocation()
    {
        return location;
    }
    public void setHasChildren(Integer hasChildren)
    {
        this.hasChildren = hasChildren;
    }

    public Integer getHasChildren()
    {
        return hasChildren;
    }
    public void setOpBy(String opBy)
    {
        this.opBy = opBy;
    }

    public String getOpBy()
    {
        return opBy;
    }
    public void setOpAt(Long opAt)
    {
        this.opAt = opAt;
    }

    public Long getOpAt()
    {
        return opAt;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentId", getParentId())
                .append("path", getPath())
                .append("name", getName())
                .append("aliasName", getAliasName())
                .append("unitcode", getUnitcode())
                .append("note", getNote())
                .append("address", getAddress())
                .append("telephone", getTelephone())
                .append("email", getEmail())
                .append("website", getWebsite())
                .append("location", getLocation())
                .append("hasChildren", getHasChildren())
                .append("opBy", getOpBy())
                .append("opAt", getOpAt())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
